package com.android.sharecar.model;

import java.util.Date;

/**
 *  Model class used to store reservation pick seats request info.
 * @author xinyan
 * @date 2011-10-20
 */
public class ReservationPickRequestMsg extends DynamicMsg {

	// type of reservation: single reservation and period reservation.
	public static final int SINGLE_RESERVATION = 1, PERIOD_RESERVATION = 2;

	private int requestId;

	private int seats; // may be provided seats or needed seats.
	private final int reservationType; // SINGLE_RESERVATION or
										// PERIOD_RESERVATION

	// (period reservation) reservation cycle which store the reservation route
	// info.
	private ReservationCycle cycle;

	// time used in single reservation.
	private Date reservationTime;

	public ReservationPickRequestMsg() {
		TAG = "ReservationRequest";
		TYPE = MessageType.Reservation;
		reservationType = SINGLE_RESERVATION; // default is single reservation.
	}

	public ReservationCycle getCycle() {
		return cycle;
	}

	public void setCycle(ReservationCycle cycle) {
		this.cycle = cycle;
	}

	public int getSeats() {
		return seats;
	}

	public void setSeats(int seats) {
		this.seats = seats;
	}

	public int getRequestId() {
		return requestId;
	}

	public void setRequestId(int requestId) {
		this.requestId = requestId;
	}

	public Date getReservationTime() {
		return reservationTime;
	}

	public void setReservationTime(Date reservationTime) {
		this.reservationTime = reservationTime;
	}

}
